<template>
	<view id="app">
		<view style="background: #F4F4F4;height: 100%;" v-cloak>
			<textarea height='200px' placeholder="请不要吝啬您的宝贵意见" v-model="content" style="text-overflow: ellipsis;"></textarea>
		</view>
		<view style="margin-top: 20px; text-align: center; ">
			<button type="default" size="mini" style="background-color: #F0AD4E;width:auto;height: auto; font-size: 8; color: #F0F0F0; border-radius: 15px;" @click="feedback">提交反馈</button>
		</view>
	</view>
	<!-- <view class="submit" >
		<button type="default" style="background-color: #FF9800;height: 100%;" @click="feedback" size="mini">提交</button>
	</view> -->
</template>

<script>
	import{
		FEEDBACK
	}from '@/store/mutation-types.js'
	export default {
		data() {
			return {
				content:''
			}
		},
		methods: {
			feedback(){
				 let app = this;
				 console.log(app.content)
				 if(app.content!=''){
					 app.$toast('反馈成功')
					 uni.switchTab({
					 	url:"../user"
					 })
				 }else{
					 app.$toast('输入内容不能为空')
				 }
				 app.content='';
			}
		}
	}
</script>

<style>

</style>

